package com.alit.face.koala.vo;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;

/**
 * jsckson json util
 * @author litong
 *
 */
public class JJsonUtil {
  private static ObjectMapper om;
  static {
    om = new ObjectMapper();
  }

  public static String writeValueAsString(Object value) {
    try {
      return om.writeValueAsString(value);
    } catch (JsonProcessingException e) {
      e.printStackTrace();
    }
    return null;
  }
}
